import React from 'react'
import { connect } from 'react-redux'
import { getUserList } from '../../redux/chat_redux'
import UserCard from '../userCard/usercard';

@connect(
    state=>state.chatuser,
    { getUserList }
)
class Boss extends React.Component {

    componentDidMount() {
        this.props.getUserList('genius')
    }

    render() {
        //父组件给子组件传值
        return <UserCard userList={this.props.userList}></UserCard>
    }

}

export default Boss